/**
 * 
 */
package com.ekingstar.framework.service;

import java.util.List;

import com.ekingstar.framework.domain.Function;
import com.ekingstar.framework.domain.Role;
import com.ekingstar.framework.util.Page;


public interface IRoleService {
	
	public boolean addRole(Role role);
	public boolean updateRole(Role role);
	public Role viewRole(String rId);
	public boolean deleteRole(String rId);
	//
	public List<Function> getFunctionsByRoleId(String id);
	//
	public boolean grantFunctionToRole(Role r);
	public boolean grantRowDataRihgtToRole(Role r);
	public boolean grantFunctionParamsToRole(Role r);
	public Page queryRoles(Role contion,int pageNo,int pageSize);
	public List getRoleByUserId(String uid);
	public List getCanGrantRoles(String uid);
	//
	public List getFieldsByRoleId(String roleId,String funId);
	public List getRowDataRightByRoleId(String roleId);
	//
	public List<Role> getAllRoles();
	//
}
